package ooday01;
//家族测试类
public class ExtendsTest {
    public static void main(String[] args) {
        Student zg=new Student();
        zg.name="张光";
        zg.age=18;
        zg.address="北京";
        zg.className="jsd2505";
        zg.stuId="003";
        zg.eat();
        zg.sleep();
        zg.sayHi();
        zg.study();

        Student ll=new Student("李林",23,"新疆","jsd2505","008");
        ll.eat();
        ll.sleep();
        ll.sayHi();
        ll.study();

        Teacher zl=new Teacher("照亮",36,"山东",6000);
        zl.eat();
        zl.sleep();
        zl.sayHi();
        zl.teach();

        Doctor wpf=new Doctor("王鹏飞",44,"陕西","主任医师");
        wpf.eat();
        wpf.sleep();
        wpf.sayHi();
        wpf.cut();


    }
}
